<%@ Reference Control="~/Controls/PagingControl.ascx" %>
<%@ Register tagprefix="Pager" Tagname="DataGridPager" Src="Controls/PagingControl.ascx" %>
<%@ Page language="vb" Inherits="_2bMatesSite.see_all_members" CodeFile="see_all_members.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<form id="_Form1" method="post" runat="server">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" height="100%">
		<tr>
			<td colspan="3">
				<table cellspacing="0" cellpadding="0" width="100%" border="0" class="page_title" id="Table1">
				<tr>
					<td>
						<asp:literal id="litGroupName" runat="server"></asp:literal><asp:literal id="litWhoseMember" runat="server">'s 
						Members: ( </asp:literal><font class="dynamic_number"><asp:literal id="litMembersCount" runat="server"></asp:literal></font><asp:literal id="litBracket" runat="server"> )</asp:literal>
					</td>
					<td align="right"><asp:hyperlink id="hlBackToGroup" runat="server" cssclass="white_link"></asp:hyperlink></td>
				</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td valign="top" height="100%" class="main_table_border">
				<div class="content">
				<table border="0" cellpadding="0" cellspacing="0" width="100%" class="main_text">					
					<tr>
						<td vAlign="top">
							<asp:Label id="lblNoMembers" runat="server" Visible="False">You have not registered any mates yet.</asp:Label>
							<asp:Table id="tblMemebrs" runat="server" class="main_text" width="100%" cellspacing=0 cellpadding=0>
								<asp:TableRow VerticalAlign="Top">
									<asp:TableCell VerticalAlign="Top">
										<table cellspacing="0" cellpadding="0" width="100%" border="0">
											<tr>
												<td valign="top" align="left" class="small">
													<Pager:DataGridPager runat="server" ID="dgPagerUp"></Pager:DataGridPager>
												</td>
											</tr>
											<tr>
												<td height="5" class="small">&nbsp;</td>
											</tr>
											<tr>
												<td class="main_text" align="left" valign="top">
													<asp:DataList runat="server" Width="100%" ShowFooter="False" BorderWidth="0px" ShowHeader="False" HorizontalAlign="Left" CssClass="data_list" RepeatDirection="Horizontal" ID="dlAllMembers" CellPadding="0" verticalalign="Bottom">
														<itemtemplate>
															<table cellspacing="0" cellpadding="0" border="0" >
																<tr>
																	<td align="center" valign="top">
																			<asp:LinkButton id=lbName runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' CommandName="MemberRedirect" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "MemberID") %>' cssclass="main_text_bold">
																			</asp:LinkButton><br />
																		<asp:imagebutton id=imgPhoto runat="server" CssClass="small_image" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ImageURL") %>' CommandName="MemberRedirect" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "MemberID") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "FullName") %>'>
																		</asp:imagebutton><br>
																		<img src="images/spacer.gif" height="3" width="1"><br>
																		<asp:image id=imgOnline runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "OnlineImg") %>'>
																		</asp:image></td>
																</tr>
																<tr>
																	<td valign="middle" align="center">
																		<asp:LinkButton id=lbDeleteMember runat="server" CssClass="main_text_bold" Visible='<%# DataBinder.Eval(Container.DataItem, "DelMemberVisibility") %>' CausesValidation="False" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "MemberID") %>' CommandName="Delete">Delete</asp:LinkButton></td>
																</tr>
															</table>
														</ItemTemplate>
														<itemstyle horizontalalign="Left" width="12%" verticalalign="top"></ItemStyle>
													</asp:DataList>
												</td>
											</tr>
											<tr>
												<td height="5" class="small">&nbsp;</td>
											</tr>											
											<tr>
												<td valign="top" align="left" class="small">
													<Pager:DataGridPager runat="server" ID="dgPager"></Pager:DataGridPager>
												</td>
											</tr>											
										</table>
									</asp:TableCell>
								</asp:TableRow>
							</asp:Table>
						</td>
					</tr>
					<tr>
						<td class="small" align="center">
							<table cellSpacing="0" cellPadding="0" width="100%" border="0">
								<tr>
									<td class="all_friends" align="left">&nbsp;</td>
									<td class="all_friends" vAlign="top" align="right">
										<asp:Image runat="server" ImageAlign="AbsMiddle" ID="imgAddFriends" ImageUrl="../images/add_friends.gif"></asp:Image>
										<asp:LinkButton runat="server" ID="lbAddMembers" CssClass="main_text_bold" onclick="lbAddMembers_Click">Add Members</asp:LinkButton>
										&nbsp;&nbsp;&nbsp;
										<asp:Image runat="server" ImageAlign="AbsMiddle" ID="imgEditFriends" ImageUrl="../images/edit_friends.gif"></asp:Image>
										<asp:LinkButton runat="server" ID="lbEditMembers" CssClass="main_text_bold" onclick="lbEditMembers_Click">Edit Members</asp:LinkButton>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				</div>
			</td>
		</tr>
	</table>
</form>
